<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Form</title>
</head>
<body>
    <div id="example">
        <input v-model.trim="message" placeholder="edit me">
        <p>1. Message is: {{ message }}</p>
        <span>2. Multiline message is:</span>
        <p style="white-space: pre-line">{{multiMsg}}</p>
        <br>
        <textarea v-model='multiMsg' placeholder="add multilines as: I want to study Vue and front end quickly but I think I'm so unhealthy now, that I can not focus on the study." 
        cols="30" rows="10"></textarea>
        <p>3. Check me, I will change into "true"</p>
        <input type="checkbox" id="checkbox" v-model="checked">
        <label for="checkbox">{{ checked }}</label>
        <p>4. Pick players:</p>
        <input type="checkbox" id="jack" value='Jack' v-model="checkedNames"><label for="jack">Jack</label>
        <input type="checkbox" id="john" value='John' v-model="checkedNames"><label for="john">John</label>
        <input type="checkbox" id="mike" value='Mike' v-model="checkedNames"><label for="mike">Mike</label>
        <br>
        <span>You have picked: {{checkedNames}}</span>
        <p>5. Pick one role:</p>
        <input type="radio" id="Feng" value="Fengliangjie" v-model="picked">
        <label for="Feng">冯靓婕</label>
        <input type="radio" id="happy" value="Happy Fengliangjie" v-model="picked">
        <label for="happy">快乐的冯靓婕</label>
        <br>
        <span>You have picked: {{ picked }}</span>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
    <script>
        new Vue({
            el: "#example",
            data: {
                message: "",
                multiMsg: "",
                checked: false,
                checkedNames: [],
                picked:''
            }
        })
    </script>
</body>
</html>